package l2

// /**
//   - @inventory
//   - @category
//   - @example {
//   - "org.zstack.header.network.l2.APICreateL2VlanNetworkEvent": {
//   - "inventory": {
//   - "vlan": 10,
//   - "uuid": "14a01b0978684b2ea6e5a355c7c7fd73",
//   - "name": "TestL2VlanNetwork",
//   - "description": "Test",
//   - "zoneUuid": "c74f8ff8a4c5456b852713b82c034074",
//   - "physicalInterface": "eth0",
//   - "type": "L2VlanNetwork",
//   - "createDate": "May 4, 2014 4:31:47 PM",
//   - "lastOpDate": "May 4, 2014 4:31:47 PM",
//   - "attachedClusterUuids": []
//   - },
//   - "success": true
//   - }
//   - }
//   - @since 0.1.0
//     */
//     @PythonClassInventory
//     @Inventory(mappingVOClass = L2VlanNetworkVO.class, collectionValueOfMethod = "valueOf1",
//     parent = {@Parent(inventoryClass = L2NetworkInventory.class, type = L2NetworkConstant.L2_VLAN_NETWORK_TYPE)})
type L2VlanNetworkInventory struct {
	*L2NetworkInventory

	Vlan int // [0,4095]
}

func L2VlanNetworkInventoryValueOf(vo *L2VlanNetworkVO) *L2VlanNetworkInventory {
	l := &L2VlanNetworkInventory{
		L2NetworkInventory: L2NetworkInventoryValueOf(&vo.L2NetworkVO),
	}
	l.Vlan = vo.Vlan
	return l
}
